package com.xw.model;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import javax.persistence.*;

@Getter
@Setter
public class Banner {
    @Id
    @Column(name = "banner_id")
    private String bannerId;

    /**
     * 图片地址
     */
    @Column(name = "img_url")
    private String imgUrl;

    /**
     * 跳转链接
     */
    @Column(name = "web_url")
    private String webUrl;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 上下架状态  0：下架 1：上架 
     */
    @Column(name = "up_or_down")
    private Integer upOrDown;

    /**
     * 1.外部链接  2.内部链接
     */
    @Column(name = "banner_type")
    private Integer bannerType;

    /**
     * 内部跳转内容id
     */
    @Column(name = "data_id")
    private Integer dataId;
}